home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / developer-tools / aros / source / exec / library / makefile < prev    next >
Encoding:
Makefile  |  1996-07-16  |  1.4 KB  |  66 lines

  1. # $Id: Makefile 1.2 1995/12/17 21:50:58 digulla Exp digulla $
  2. # $Log: Makefile $
  3. # Revision 1.2  1995/12/17  21:50:58  digulla
  4. # Added PART/SUBPART
  5. #
  6. # Revision 1.1    1995/11/14  22:16:53  digulla
  7. # Initial revision
  8. #
  9.  
  10. TOP_DIR     = prj:
  11. PART        = exec
  12. SUBPART     = library
  13. CURRENT_DIR    = source/$(PART)/$(SUBPART)/
  14.  
  15. include $(TOP_DIR)MakeFlags
  16.  
  17. FUNCTIONS    =   addlibrary closelibrary makefunctions makelibrary \
  18.             oldopenlibrary openlibrary remlibrary setfunction \
  19.             sumlibrary
  20.  
  21. SRCDIR        = src/
  22. SRCS        = $(foreach f,$(FUNCTIONS),$(SRCDIR)$f.c)
  23. OBJS        = $(foreach f,$(FUNCTIONS),$(OBJDIR)/$f.o)
  24. DEPS        = $(foreach f,$(FUNCTIONS),$(OBJDIR)/$f.d)
  25. LIB        = $(LIB_PREFIX)$(PART)_$(SUBPART)$(OPT_SUFFIX)$(LIB_SUFFIX)
  26.  
  27. USR_DIST_FILES    =
  28. DEV_DIST_FILES    = Makefile RCS_Link $(SRCS) $(SRCDIR)RCS_Link
  29.  
  30. INCLUDES    =   $(INCLUDE_DIR) $(TOP_DIR)$(CURRENT_DIR)include \
  31.             $(INCLUDE_DIR) $(TOP_DIR)source/exec/include \
  32.             $(INCLUDE_DIR) $(TOP_DIR)include
  33.  
  34. all :: $(LIB)
  35.     $(done-with-it)
  36.  
  37. $(LIB) : $(OBJDIR) $(OBJS)
  38.     $(AR) $(LIB) $(OBJS)
  39.  
  40. install ::
  41.     $(nothing-to-be-done)
  42.  
  43. clean ::
  44.     -$(RM) $(OBJS) $(LIB)
  45.     $(done-with-it)
  46.  
  47. check :: all
  48.     $(nothing-to-be-done)
  49. #     cd tests ; $(MAKE) all $(MAKEFLAGS) "CURRENT_DIR=$(CURRENT_DIR)"
  50.  
  51. dist ::
  52.     $(do-dist)
  53. #     cd tests ; $(MAKE) dist $(MAKEFLAGS) "CURRENT_DIR=$(CURRENT_DIR)tests/"
  54.  
  55. $(OBJDIR) :
  56.     -$(MKDIR) $(OBJDIR)
  57.  
  58. $(OBJDIR)/%.o : $(SRCDIR)%.c
  59.     $(run-cc)
  60.  
  61. $(OBJDIR)/%.d : $(SRCDIR)%.c
  62.     $(make-depend)
  63.  
  64. -include $(DEPS)
  65.  
  66.